import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'mathAbs'})
export class MathAbsPipe implements PipeTransform {
  transform(value: number): number {
    return Math.abs(parseFloat(value.toFixed(2)));
  }
}
